package br.com.abril.wallet;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="booking_wallet")

public class BookingWallet implements Serializable {
	
	private static final long serialVersionUID = 1L;

	public static final int PAGE_SIZE = 30;
	
	@Id
	@Column(name="wallet")
	private String wallet;

	public BookingWallet() {
	}

	public String getWallet() {
		return wallet;
	}

	public void setWallet(String wallet) {
		this.wallet = wallet;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((wallet == null) ? 0 : wallet.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BookingWallet other = (BookingWallet) obj;
		if (wallet == null) {
			if (other.wallet != null)
				return false;
		} else if (!wallet.equals(other.wallet))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "BoockingWallet [wallet=" + wallet + "]";
	}

}
